﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo001
{
    class Program
    {
        //要求用户输入半径的值，打印出以此值为半径的圆的面积
        static void Main(string[] args)
        {
            Console.WriteLine("请输入圆形的半径：");
            string a = Console.ReadLine();
            double r = double.Parse(a);
            double Area;
            Area = r * r * 3.14;
            Console.WriteLine(Area);

        }

         static void TEXT()
        {
            Console.WriteLine("请输入一个四位数");
            string a = Console.ReadLine();
            int b = int.Parse(a);
            int c = b / 1000;
            int d = b / 100 % 10;
            int e = b / 100 / 10;
            int f = b % 10;
            Console.WriteLine("用户输入的千位数为" + c + "百位数为" + d + "十位数为" + e + "个位数为" + f);
        }

        public static void TINK()
        {
            Console.WriteLine("输入三个数");
            string a = Console.ReadLine();
            int A = int.Parse(a);
            string b = Console.ReadLine();
            int B = int.Parse(b);
            string c = Console.ReadLine();
            int C = int.Parse(c);
            int[] z = { A, B, C };
            int max = z[0];
            for (int i = 0; i < z.Length; i++)
                if (max < z[i])
                {
                    max = z[i];
                }
        }
    }
}

//用户输入三个数，找出最大的数，打印输出。



